package com.ocom.common.vo.human;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.entity.typehandler.PersonInfoHandle;
import lombok.Data;

import java.io.Serializable;

@Data
public class StudentInfoRVo implements Serializable {

    //单位编号
    @JsonProperty("comId")
    private Long comId;
    //人员id
    @JsonProperty("pId")
    private Long pId;
    //部门id
    @JsonProperty("deptId")
    private Long deptId;

    @JsonProperty("roomPerson")
    private  String roomPerson;

    @JsonProperty("deptName")
    private  String deptName;

    //人员姓名
    @JsonProperty("pName")
    private String pName;
    //人员编号
    @JsonProperty("pCode")
    private String pCode;
    //人员类型
    @JsonProperty("pType")
    private Integer pType;
    //手机号
    @JsonProperty("pPhone")
    private String pPhone;
    //身份证
    @JsonProperty("pIdentity")
    private String pIdentity;
    //人员状态

    @JsonProperty("status")
    private Integer status;

    @JsonProperty("regionOrigId")
    private  Long regionOrigId;
    @JsonProperty("regionId")
    private  Long regionId;
    @JsonProperty("regionOnline")
    private Integer regionOnline;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private String endDate;

    public void setpPhone(String pPhone) {
        this.pPhone = PersonInfoHandle.decryptS(pPhone);
    }

    public void setpIdentity(String pIdentity) {
        this.pIdentity = PersonInfoHandle.decryptS(pIdentity);
    }

}
